﻿using MDto;
using Microsoft.AspNetCore.Mvc;
using MIServices;
using MServices;

namespace MWebAPI.Controllers
{
    [ApiController]
    [Route("[controller]/[action]")]
    [ApiExplorerSettings(GroupName = "V1")]
    public class UserInfoController : Controller
    {
        private readonly IUserInfoServices _services;
        public UserInfoController(IUserInfoServices services)
        {
            _services = services;
        }
      
        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public UserInfoDto GetUserInfo()
        {
             return _services.GetUserInfo();
        }
    }
}
